package mockobject;

import static org.junit.Assert.*;

import org.junit.Test;

public class ApplicationTest {

    MockView mockView = new MockView();
    
    @Test
    public void testRun() {
        Application app = new Application() {
            @Override protected View newView() {
                return mockView;
            }
        };
        
        app.run();
    }
    
    private class MockView extends View {
        @Override
        public int intValue() {
            return 6;
        }
    }

}
